import { Context } from "../class/Context";
import { Hurt } from "../class/Hurt";
import { Method } from "../class/Method";

/**
 * 雷霆之劫
 */
export class LeiTingZhiJie extends Method {
    static methodName = "雷霆之劫"
    public CD: number = 30E3;
    public describe: string = "对目标敌人造成 150%(PA) + 1000 点物理伤害，并附加 1000 点法术伤害。";
    invoke(context: Context): void {
        const itId = context.nextParam();// 释放 雷霆之劫 @资源
        const it = this.masterRole.game.getRole(itId);

        const PA = Math.floor(this.masterRole.getPhysicsAttack() * 1.5 + 1000)

        it.onHurt(this.masterRole, new Hurt(PA, 1000, 0));
    }
}
